For Loops In R: A Tutorial On How To Simplify Your Code Without Compromising Performance